/*
 * Copyright (c) 2006-2023, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2023-11-18     RT-Thread    first version
 */

#include <rtthread.h>
#include <board.h>
#include <drivers/pin.h>




#define DBG_TAG "main"
#define DBG_LVL DBG_LOG
#include <rtdbg.h>



#define PHY_RESET_IO GET_PIN(G, 12)
void phy_reset(void)
{
    rt_pin_mode(PHY_RESET_IO, PIN_MODE_OUTPUT);
    rt_pin_write(PHY_RESET_IO, PIN_HIGH);
    rt_thread_mdelay(50);
    rt_pin_write(PHY_RESET_IO, PIN_LOW);
    rt_thread_mdelay(50);
    rt_pin_write(PHY_RESET_IO, PIN_HIGH);
}




int main(void)
{
    int count = 1;

    while (count++)
    {
        //LOG_D("Hello RT-Thread!");
        rt_thread_mdelay(1000);
    }

    return RT_EOK;
}
